<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>角色管理</title>
    <link th:href="@{/css/style.css}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/bootstrap-table.min.css}" rel="stylesheet">
    <link th:href="@{/css/role/role.css}" rel="stylesheet"/>


    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/bootstrap-table/bootstrap-table.min.js}"></script>
    <script th:src="@{/js/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
    <script th:src="@{/js/layer/layer.min.js}"></script>
    <script th:src="@{/js/common.js}"></script>
    <script th:src="@{/js/system/role.js}"></script>


</head>
<body class="gray-bg">
<div class="row">
    <div class="col-sm-12 search-collapse">
        <form id="role-form">
            <div class="select-list">
                <ul>
                    <li>角色名称：<label>
                        <input type="text" name="roleName"/>
                    </label></li>
                    <li>权限字符：<label>
                        <input type="text" name="roleKey"/>
                    </label></li>
                    <li>角色状态：
                        <label>
                            <select name="status">
                                <option value="">所有</option>
                                <option value="0">正常</option>
                                <option value="1">停用</option>
                            </select>
                        </label>

                    </li>
                    <li class="select-time">创建时间：
                        <label for="startTime"></label><input type="text" class="time-input" id="startTime"
                                                              placeholder="开始时间" name="params[beginTime]">
                        <span>-</span>
                        <label for="endTime"></label><input type="text" class="time-input" id="endTime"
                                                            placeholder="结束时间" name="params[endTime]">
                    </li>
                    <li>
                        <a class="btn btn-primary btn-rounded btn-sm" onclick="tableSearch()"><i
                                class="fa fa-search"></i>搜索</a>
                        <a class="btn btn-warning btn-rounded btn-sm" onclick="tableReset()"><i
                                class="fa fa-refresh"></i>重置</a>
                    </li>
                </ul>
            </div>
        </form>
    </div>


    <div class="btn-group-sm" id="toolbar" role="group">
        <a class="btn btn-success" onclick="add()">
            <i class="fa fa-plus"></i> 新增
        </a>
        <a class="btn btn-primary single" onclick="edit()">
            <i class="fa fa-edit"></i> 修改
        </a>
        <a class="btn btn-danger multiple" onclick="removeAll()">
            <i class="fa fa-remove"></i> 删除
        </a>
        <a class="btn btn-warning">
            <i class="fa fa-download"></i> 导出
        </a>
    </div>

    <div class="col-sm-12 select-table table-striped">
        <table id="bootstrap-table"></table>
    </div>
</div>


<script th:src="@{/laydate/laydate.js}"></script>
<script>
    laydate.render({
        elem: '#startTime'
    });
    laydate.render({
        elem: '#endTime'
    });
</script>


</body>
</html>